import Axios from "../../lib/request";

//运费列表
export const findFreight = function (data) {
    return Axios.post("/freightTemplate/findFreight", data);
};

//删除运费列表
export const freightTemplateDelete = function (id) {
    return Axios.get(`/freightTemplate/delDetails?id=${id}`);
};

//创建运费模板
export const insterFreight = function (data) {
    return Axios.post("/freightTemplate/insterFreight", data);
};

//运费详情
export const freightDetails = function (id) {
    return Axios.get(`/freightTemplate/freightDetails?id=${id}`);
};

//修改运费模板
export const updateFreight = function (data) {
    return Axios.post("/freightTemplate/updateFreight", data);
};